//
//  ME_mainViewCell.m
//  NBProduct
//
//  Created by hl on 16/5/17.
//  Copyright (c) 2016年 ping. All rights reserved.
//

#import "ME_mainViewCell.h"

@implementation ME_mainViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.signImage = [[UIImageView alloc] initWithFrame:CGRectMake(15*_kscW, 8*_kscH, 20*_kscW, 20*_kscH)];
        [self.contentView addSubview:self.signImage];
        
        self.signLabel = [[BaseLabel alloc] initWithFrame:CGRectMake(self.signImage.right+13*_kscW, 11*_kscH, KScreenWidth - self.signImage.right - 70*_kscW, 14*_kscH) andFont:PuTongFont];
        [self.contentView addSubview:self.signLabel];
        
        lineLab = [[UILabel alloc] initWithFrame:CGRectMake(self.signLabel.left, 36*_kscH-0.5, KScreenWidth - self.signLabel.left, 0.5)];
        lineLab.backgroundColor = XiaHuaXianCOLOR;
        [self.contentView addSubview:lineLab];
        
    }
    return self;
}
-(void)setTop:(BOOL)top{
    _top = top;
    if (top) {
      
        [self.contentView addSubview:[UILabel drawXiaHuaXianLabel:0]];
    }
}
-(void)setBottom:(BOOL)bottom{
    _bottom = bottom;
    if (bottom) {
        [lineLab setHidden:YES];
     
        [self.contentView addSubview:[UILabel drawXiaHuaXianLabel:36 * _kscH - 0.5]];
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
